import java.util.Arrays;

public enum Test3 {
    Red,Blue,Black;

    public static void main(String[] args) {
        Test3 test3 = Test3.Black;
        System.out.println(test3);
        Test3[] arr = Test3.values();
        System.out.println(Arrays.toString(arr));
        int a = Black.ordinal();
        System.out.println(a);
        Test3 t1 = Test3.valueOf("Red");
        System.out.println(t1);
        int b = Red.compareTo(Blue);
        System.out.println(b);
    }
}
